#ifndef AUDIOPAGE_H
#define AUDIOPAGE_H

#include <TFT_eSPI.h>
#include <SPI.h>
#include "generated/gui_guider.h" //LVGL库
#include "custom/custom.h"
#include "generated/events_init.h"
#include "lvgl.h"
#include <Button2.h>
#include <IISAudio/IISAudio.h>
#include <AudioMqtt/AudioMqtt.h>

#define RECEIVER 0
#define SENDER 1

extern TFT_eSPI tft;

//显示想你界面
void audio_send();//发送mqtt音频数据
void update_chart_with_i2s_data(lv_obj_t *chart, int16_t *samples_16bit, int sample_count);//更新数据到lvgl显示



#endif